export const formConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'top',
	column: [],
}

export const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '用户类型',
			prop: 'classifyId',
			custome: 'tag',
			align: 'center',
			dicData: [
				{ label: '大众用户', value: '1' },
				{ label: '平台管理员', value: '2' },
				{ label: '政务用户', value: '3' },
				{ label: '养老服务组织用户', value: '4' },
				{ label: '服务商用户', value: '5' },
			],
      type:'select',
      span:8
		},
		{
			label: '操作人账号',
			prop: 'operateBy',
			type: 'text',
			span: 8,
		},
		{
			label: '操作ip地址',
			prop: 'operateIp',
			type: 'input',
			span: 8,
		},
		{
			label: '操作内容',
			prop: 'operateContent',
			type: 'text',
			span: 8,
		},
		{
			label: '操作数据',
			prop: 'operateData',
			type: 'text',
			span: 8,
		},
		{
			label: '操作时间',
			prop: 'operateTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	columns: [
		{ label: '操作人', prop: 'realName' },
		{
			label: '用户类型',
			prop: 'classifyId',
			custome: 'tag',
			align: 'center',
			dicData: [
				{ label: '大众用户', value: '1' },
				{ label: '平台管理员', value: '2' },
				{ label: '政务用户', value: '3' },
				{ label: '养老服务组织用户', value: '4' },
				{ label: '服务商用户', value: '5' },
			],
		},
		{ label: '操作人账号', prop: 'operateBy' },
		{ label: '操作内容', prop: 'operateContent' },
		{ label: '操作数据', prop: 'operateData' },
		{ label: '操作ip地址', prop: 'operateIp' },
		{ label: '操作时间', prop: 'operateTime' },
	],
}

export const api = {
	index: 'view_sysDataOperateLog_page',
}
export const baseConfig = {
	pageName: '系统日志',
	dictcodes: [],
	rowKey: 'id',
	addLabel: '新增',
	tipLabel: 'operateBy',
	exportMqTopic: '/ning/export/',
	paramsObj: {
		code: 3031,
	},
	api,
	auth: {
		index: 'view_sysDataOperateLog_page',
	},
	menuBtn: [
		{
			icon: 'detail',
			label: '查看详情',
			type: 'primary',
			operate: 'detail',
			auth: 'view_dpEquipmentManagement_page',
			text: true,
			show: true,
		},
	],

	saveFormate: async (form) => {
		return new Promise((resolve, reject) => {
			resolve(form)
		})
	},
	dialogConfig: {
		width: '75%',
	},
	searchConfig,
	formConfig,
	tableConfig,
	detailConfig: formConfig,
}
